package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class MessagesBase{
	boolean[] modified=new boolean[9];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public MessagesBase(){}
	public MessagesBase(java.lang.Long id,java.lang.Long chatroomId,java.lang.Long fromUser,java.lang.String fromUserNicename,java.lang.Long toUser,java.lang.String content,java.util.Date time,java.lang.Integer type,java.lang.Boolean read){
		setId(id);
		setChatroomId(chatroomId);
		setFromUser(fromUser);
		setFromUserNicename(fromUserNicename);
		setToUser(toUser);
		setContent(content);
		setTime(time);
		setType(type);
		setRead(read);
	}
	public void setId(java.lang.Long id){
		if(id!=null) {
			set("id",id);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getId(){
		return (java.lang.Long)get("id");
	}
	public void setChatroomId(java.lang.Long chatroomId){
		if(chatroomId!=null) {
			set("chatroomId",chatroomId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getChatroomId(){
		return (java.lang.Long)get("chatroomId");
	}
	public void setFromUser(java.lang.Long fromUser){
		if(fromUser!=null) {
			set("fromUser",fromUser);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getFromUser(){
		return (java.lang.Long)get("fromUser");
	}
	public void setFromUserNicename(java.lang.String fromUserNicename){
		if(fromUserNicename!=null) {
			set("fromUserNicename",fromUserNicename);
			this.modified[3] =true;
		}
	}
	public java.lang.String getFromUserNicename(){
		return (java.lang.String)get("fromUserNicename");
	}
	public void setToUser(java.lang.Long toUser){
		if(toUser!=null) {
			set("toUser",toUser);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getToUser(){
		return (java.lang.Long)get("toUser");
	}
	public void setContent(java.lang.String content){
		if(content!=null) {
			set("content",content);
			this.modified[5] =true;
		}
	}
	public java.lang.String getContent(){
		return (java.lang.String)get("content");
	}
	public void setTime(java.util.Date time){
		if(time!=null) {
			set("time",time);
			this.modified[6] =true;
		}
	}
	public java.util.Date getTime(){
		return (java.util.Date)get("time");
	}
	public void setType(java.lang.Integer type){
		if(type!=null) {
			set("type",type);
			this.modified[7] =true;
		}
	}
	public java.lang.Integer getType(){
		return (java.lang.Integer)get("type");
	}
	public void setRead(java.lang.Boolean read){
		if(read!=null) {
			set("read",read);
			this.modified[8] =true;
		}
	}
	public java.lang.Boolean getRead(){
		return (java.lang.Boolean)get("read");
	}
}
